This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
I found an entry from Note/Domino 6 and 7 forum from 2003 that stated that it was not possible to write a byte array to the browser (via Print Statement [lotus script] or the PrintWriter[java]).:Forum entry:
"Unfortunately the answer was:
‘The implementation of agents in Domino makes it impossible to send binary data with the getAgentOutput in Java or the print function in LotusScript. There is [sic] two ways to "mimic" the sending of the binary data:
1. Create a temporary document and attach the binary data as a file and redirect the user to it
2. Use a servlet to "stream" out the content'"
I was curious if there was an update to Notes 8 that can accomplish this task.
I tried placing the byte array into a NotesStream and looping through the array into readable chucks (500 characters), adding the char value to a concating string varible than using the Print statement (Print tmp;). It appears the browser did not like the space between different printed chucks or theconverison of the byte array to char corrupts the file, not 100% sure.
However, the broswer would display the pdf with blank pages and an error stating that a corrupt charatcer. Yet, when I output the byte array, from the web consumer service, to a file (with the ext .pdf) it opens perfectly. The idea is to display the pdf in the browser doing everything within memory. Ie printing NotesStream to the browser or even printing the byte array.
Thanks for any assistance.
Feedback number WEBB8DP8WJ created by ~Ben Prealitobu on 02/02/2011